<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<body>

	<ui:composition template="/templates/template.xhtml">

		<ui:define name="title">#{msgs.userCrudTitle}</ui:define>

		<ui:define name="body">
			<h:form id="form">

				<div align="center">
					<p:panel header="#{msgs.loginTitle}" style="width:350px">
						<p:messages id="messages">
							<p:effect type="pulsate" event="load" />
						</p:messages>

						<h:panelGrid columns="2" id="grid">
							<h:outputLabel value="#{msgs.userCrudId}" for="Id"></h:outputLabel>
							<p:inputText id="Id" value="#{userTO.login}" required="true"
								label="#{msgs.userCrudId}" />

							<h:outputLabel value="#{msgs.userCrudName}" for="Name"></h:outputLabel>
							<p:inputText id="Id" value="#{userTO.name}" required="true"
								label="#{msgs.userCrudName}" />

							<h:outputLabel value="#{msgs.userCrudLastname}" for="Name"></h:outputLabel>
							<p:inputText id="Id" value="#{userTO.lastname}" required="true"
								label="#{msgs.userCrudLastname}" />

							<h:outputLabel value="#{msgs.userCrudEmail}" for="Email"></h:outputLabel>
							<p:inputText id="Id" value="#{userTO.email}" required="true"
								label="#{msgs.userCrudEmail}" />

<!--  Add theme selection here -->

							<p:commandButton value="#{msgs.cancelLabel}" type="reset" />
							<p:commandButton value="#{msgs.saveLabel}"
								action="" update="messages"
								ajax="false" />
						</h:panelGrid>
					</p:panel>
				</div>
			</h:form>
		</ui:define>
	</ui:composition>
</body>
</html>